package com.puppet.listener.work;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class WorkQueueListener1 {

    @RabbitListener(queues = "work.queue")
    public void workQueue1(String message){
        log.info("消费者1接收到的消息：{}",message);
    }
}
